<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column fixed prop="date" label="ID" width="150" />
    <el-table-column prop="ip" label="Name" width="120" />
    <el-table-column prop="state" label="State" width="120" />
    <el-table-column prop="city" label="City" width="120" />
    <el-table-column prop="address" label="Address" width="600" />
    <el-table-column prop="zip" label="Zip" width="120" />
    <el-table-column fixed="right" label="Operations" width="120">
    <template #default>
        <el-button type="text" size="small" @click="handleClick"
          >Detail</el-button>
        <el-button type="text" size="small">Edit</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: 'Goods',
  props: [
    "tableData"
  ],
  methods: {
    handleClick() {
      console.log('click')
    },
  },
}
</script>
